package baiqitun.stupro.common.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 树形结构模型
 * @author kedaji
 */
@ApiModel("树结构模型")
@Accessors(chain = true)
@Data
public class TreeModel<E> implements Serializable {
    @ApiModelProperty("节点")
    private E node;
    @ApiModelProperty("子节点")
    private List<TreeModel<E>> childrenTree;
}
